import http from "@/api/request.js";

const bastUrl = "/user/excel/";
/**
 * 登录
 */
export const downloadExcel = () => {
  return http({
    url: `${bastUrl}download`,
    method: "get",
    responseType: "blob" //后端文件流时候要加上
  });
};

/**
 * 登录
 */
export const downloadExcelBySteam = () => {
  return http({
    url: `${bastUrl}downloadExcel`,
    method: "get",
    responseType: "blob" //后端文件流时候要加上
  });
};